package cn.echoedu.control;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.echoedu.command.base.SuccessParam;
import cn.echoedu.entity.SchoolCalendar;
import cn.echoedu.entity.receivecommand.QuerySchoolCalendarReceive;

public class SchoolCalendarControl extends BaseControl{

	 
	private void sendSuccess(SuccessParam successparam){
		getResponseService().doSchoolCalendarSuccess(successparam);
	}
	public void doQuerySchoolCalendar(HttpServletRequest request,
			HttpServletResponse response,
			QuerySchoolCalendarReceive queryschoolCalendarreceive) {
		// TODO Auto-generated method stub
 
		SchoolCalendar schoolCalendar = getSchoolCalendarModel()
				.queryByYearAndSchoolCode(
				queryschoolCalendarreceive.getYear()
				,queryschoolCalendarreceive.getSchoolcode());
		sendSuccess(getSuccessParam(request, response,schoolCalendar,
				"",queryschoolCalendarreceive.getCode()));
		
	}
	
}
